from PyQt4.QtCore import *
from PyQt4.QtGui import *
import sys

from password_ui import *
import uiplatform

class Password(QDialog, Ui_Password):
    
    """Enter user password"""
    
    def __init__(self, *args):
        QDialog.__init__(self, *args)
        self.setupUi(self)
        if uiplatform.name == "maemo":
            self.editUserPassword.setEchoMode(QLineEdit.PasswordEchoOnEdit)
        self.setWindowFlags(self.windowFlags() | Qt.WindowStaysOnTopHint)
        self.setFocusProxy(self.editUserPassword)